﻿using Newtonsoft.Json;
using Newtonsoft.Json.Serialization;
using System;
using System.Collections.Generic;
using System.Text;

namespace CoreWeb.Serialization
{
    public class JsonSettings
    {
        public static JsonSerializerSettings JsonSerializerSettings = new JsonSerializerSettings
        {
            //小驼峰命名
            ContractResolver = new CamelCasePropertyNamesContractResolver(),
            //默认日期格式
            DateFormatString = "yyyy-MM-dd HH:mm:ss",
        };
    }
}
